package com.boot.springboot.component.springwebsocket.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author luowenjie
 * @since 2021/11/26 16:21
 */
@Controller
@RequestMapping("/springws")
@Slf4j
@Api(tags = "springwebsocket接口")
public class WebBaseController {

    @GetMapping("/wechat")
    @ApiOperation(value = "跳转到登陆成功页面")
    public ModelAndView loginSuccess() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("wechat/wechat.html");
        modelAndView.addObject("webPath", "http://localhost:8091/");
        modelAndView.addObject("accountId", "111");
        modelAndView.addObject("schoolId", "222");
        modelAndView.addObject("receiverId", "333");
        modelAndView.addObject("appId", "444");
        modelAndView.addObject("chatId", "555");
        return modelAndView;
    }

}
